package com.ks.freezer.feign;


import com.atguigu.commonutils.R;
import com.atguigu.vo.MenuSearchVo;
import com.atguigu.vo.MenuVo;
import com.atguigu.vo.SearchVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("ks-search")
public interface SearchFeign {

    @PostMapping("/search/getmenus")
    List<MenuVo> getMenus(@RequestBody SearchVo searchVo);

    @PostMapping("/search/addmenuvo")
    R addMenuVo(@RequestBody MenuSearchVo menuSearchVo);
}
